import request from '@/utils/request'

// 查询菜谱与标签关联列表
export function listMiddle_tags(query) {
  return request({
    url: '/recipes/middle_tags/list',
    method: 'get',
    params: query
  })
}

// 查询菜谱与标签关联详细
export function getMiddle_tags(id) {
  return request({
    url: '/recipes/middle_tags/' + id,
    method: 'get'
  })
}

// 新增菜谱与标签关联
export function addMiddle_tags(data) {
  return request({
    url: '/recipes/middle_tags',
    method: 'post',
    data: data
  })
}

// 修改菜谱与标签关联
export function updateMiddle_tags(data) {
  return request({
    url: '/recipes/middle_tags',
    method: 'put',
    data: data
  })
}

// 删除菜谱与标签关联
export function delMiddle_tags(id) {
  return request({
    url: '/recipes/middle_tags/' + id,
    method: 'delete'
  })
}
